//
//  XYContactPerson.m
//  小小通讯录
//
//  Created by qianfeng on 15/8/12.
//  Copyright (c) 2015年 qianfeng. All rights reserved.
//

#import "XYContactPerson.h"

@implementation XYContactPerson
- (id) initWithArray:(NSArray *)array{
    if (self = [super init]) {
        _name = [array objectAtIndex:0];
        _address = [array objectAtIndex:10];
        _company = [array objectAtIndex:6];
        _telephone = [array objectAtIndex:3];
    }
  return self;
}
- (NSString *)description{
    return [NSString stringWithFormat:@"%@ %@ %@ %@",_name,_address,_company,_telephone];
}

@end
